import axios, { ResponseCommon } from '../utils/axios';

interface InsurancesReq {
  limit: number;
  page: number;
  carPlate?: string;
  insured?: string;
}

interface InsurancesRes {
  currPage: number;
  list: any[];
  pageSize: number;
  totalCount: number;
  totalPage: number;
}

export const insurances = (params: InsurancesReq): Promise<ResponseCommon<InsurancesRes>> => axios.post('/base/insurances', params);

export default {};
